import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'admin/create-product',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'admin/update-product',
    method: 'post',
    data
  })
}

export function info(params) {
  return request({
    url: 'admin/get-product-info',
    method: 'get',
    params
  })
}

export function del(data) {
  return request({
    url: 'admin/delete-product',
    method: 'post',
    data
  })
}
